<?
require("config.php");

getMyParam("id");
if (isset($_POST["action"])) {

if (empty($_POST["first_name"]) || empty($_POST["last_name"])  || empty($_POST["position"])  || empty($_POST["company"])  || empty($_POST["c_address"])  || empty($_POST["email"])  || empty($_POST["last_name"])  || empty($_POST["o_phone"])  || empty($_POST["m_phone"]) ) {
	$errormsg = "(Please fill the required fields marked with *)";
}

//?????
$postEnrollCode = $_POST["enroll_code"];
$sessionEnrollCode = $_SESSION['enroll_num_check'];

if($postEnrollCode != $sessionEnrollCode)
{
	$errormsg = "(Verify code error!)";
}

if (empty($errormsg)) {
	$signdate = date("Y-m-d H:i:s");
	$q = "select people from med_aevening where id='$id'";
	$r = myQuery($q);
	$limit = $r[0][0];
	$q = "select count(*) from med_aenroll where aid='$id' and status='Registered'";
	$r = myQuery($q);
	$enrolled = $r[0][0];
	
	if ($limit > $enrolled) {
		$status = "Registered";
		
		$Query = "select date, time, presented, venue, name from med_aevening where id='$id'";
$r = myQuery($Query);
$adate = strip_tags($r[0][0]);
$atime = strip_tags($r[0][1]);
$presented = strip_tags($r[0][2]);
$venue = strip_tags($r[0][3]);
$name = strip_tags($r[0][4]);
		/*
		$headers = "From: Acuity World <info@acuityworld.com>\r\n";
$headers .= "X-Sender: <info@acuityworld.com>\r\n";
$headers .= "Return-Path: <info@acuityworld.com>\r\n";
$subject = "Confirmation of your Sign Up of Acuity Evening\r";

$message = "";

$message .= "Dear $first_name,\n\n";

$message .= "Thank you for the sign up of our Acuity Evening !\n\n";

$message .= "This email is to confirm your reservation of seat(s) to the following Acuity Evening.\n\n";

$message .= "Date: $adate\n";
$message .= "Time: $atime\n";
$message .= "Acuity Evening: $presented\n";
$message .= "Venue: $venue\n";
$message .= "Description: $name\n\n";

$message .= "Your Personal Information:\n";
$message .= "Date of Sign Up: $signdate\n\n";

$message .= "First Name: $first_name\n";
$message .= "Last Name: $last_name\n";
$message .= "Position: $position\n";
$message .= "Company: $company\n";
$message .= "Company Address: $c_address\n";
$message .= "Private Address: $p_address\n";
$message .= "Email: $email\n";
$message .= "Office Telephone: no.: $o_phone\n";
$message .= "Mobile telephone no.: $m_phone\n";
$message .= "Home telephone no.: $h_phone\n\n\n";


$message .= "Please print and bring this confirmation with you for the registration.  We are looking forwards to see you.\n\n";

$message .= "Best regards,\n\n\n";


$message .= "Acuity World\n";
$message .= "Making Leadership Personal with PLP in Denmark & HK\n";
$message .= "www.acuityworld.com\n";
$message .= "Tel: +45 4448 6969\n";
mail($email, $subject, $message, $headers);
*/
$from_name = "Acuity World";
$from_email = "info@acuityworld.com";
$to_name = $first_name;
$to_email = $email;

$subject = "Confirmation of your sign up of Acuity Evening";

/*
$file = "email/aenroll_c.php?";

$target = 
"first_name=" . urlencode($first_name) . 
"&adate=" . $adate . 
"&atime=" . $atime . 
"&presented=" . urlencode($presented) . 
"&venue=" . urlencode($venue) . 
"&name=" . urlencode($name) . 
"&signdate=" . urlencode($signdate) . 
"&last_name=" . $last_name . 
"&position=" . $position . 
"&company=" . urlencode($company) . 
"&c_address=" . urlencode($c_address) . 
"&p_address=" . urlencode($p_address) . 
"&email=" . urlencode($email). 
"&o_phone=" . $o_phone . 
"&m_phone=" . urlencode($m_phone) . 
"&h_phone=" . urlencode($h_phone);

$content =  file($file . $target);

/*
$content1 = $remark . "<br><br>";


for ($i=0;$i<count($content);$i++){
	$content1 .= $content[$i];
} */

$content1 = "<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN'>
<html>
<head>
<title>Acuity World</title>
<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'>
</head>
<body bgcolor='#FFFFFF'>
<table width='600' border='0' cellspacing='0' cellpadding='1'>
  <tr>
    <td align='right'><table width='180' border='0' cellpadding='1' cellspacing='0'>
  <tr>
    <td bgcolor='#000000'><table width='100%' border='0' cellpadding='1' cellspacing='0' bgcolor='#FFFFFF'>
        <tr>
                <td align='center'><font size='3' face='Verdana, Arial, Helvetica, sans-serif'><strong>Acuity World</strong></font></td>
        </tr>
      </table></td>
  </tr>
</table></td>
  </tr>
</table>
<p><font size='2' face='Arial, Helvetica, sans-serif'>Dear $first_name,</font></p>
<p><font size='2' face='Arial, Helvetica, sans-serif'>Thank you for the sign up of our Acuity Evening!<br>
  <br>
  This email is to confirm your reservation of seat(s) to the following Acuity Evening.Date: 
  $adate <br>
  <br>
  Time: 
  $atime
  <br>
  Acuity Evening: 
  $presented
  <br>
  Venue: 
  $venue
  <br>
  Description: 
  $name
  <br>
  <br>
  Your Personal Information:<br>
Date of Sign Up: 
    $signdate
<br>
First Name: 
  $first_name <br>
  Last Name: 
  $last_name
  <br>
  Position: 
  $position
  <br>
  Company: 
  $company
  <br>
  Company Address: 
  $c_address
  <br>
Private Address:
$p_address
<br>
  Email: 
  $email
  <br>
  Office Telephone: no.: 
  $o_phone
  <br>
  Mobile telephone no.: 
  $m_phone
  <br>
  Home telephone no.: 
  $h_phone
  <br>
  <br>
  Please bring this confirmation email with you and attend the Acuity Evening on time.<br>
  <br>
  <br>
  Best regards,<br>
</font></p>
<p><font size='2' face='Arial, Helvetica, sans-serif'>Acuity World<br>
  Making Leadership Personal with PLP in Denmark &amp; HK www.acuityworld.com<br>
  Tel: +45 4448 6969</font></p>
<p>&nbsp; </p>
</body>
</html>
";

//for ($i=0;$i<count($content);$i++){print $content[$i];}
sendhtmlmail($from_name,$from_email,$to_name,$to_email,$subject,$content1);
		
		
	} else {
		$status = "Waiting";
		
		$Query = "select date, time, presented, venue, name from med_aevening where id='$id'";
$r = myQuery($Query);
$adate = strip_tags($r[0][0]);
$atime = strip_tags($r[0][1]);
$presented = strip_tags($r[0][2]);
$venue = strip_tags($r[0][3]);
$name = strip_tags($r[0][4]);
$from_name = "Acuity World";
$from_email = "info@acuityworld.com";
$to_name = $first_name;
$to_email = $email;

$subject = "Confirmation of your Sign Up of Acuity Evening";
		/*
		$headers = "From: Acuity World <info@acuityworld.com>\r\n";
$headers .= "X-Sender: <info@acuityworld.com>\r\n";

$headers .= "Return-Path: <info@acuityworld.com>\r\n";
$subject = "Confirmation of your Sign Up of Acuity Evening\r";

$message = "";

$message .= "Dear $first_name,\n\n";

$message .= "Thank you for the sign up of our Acuity Evening !\n\n";

$message .= "Since the following Acuity Evening is fully booked, you are now on our waiting list.  You will be informed in case there is free seat.\n\n";

$message .= "Date: $adate\n";
$message .= "Time: $atime\n";
$message .= "Acuity Evening: $presented\n";
$message .= "Venue: $venue\n";
$message .= "Description: $name\n\n";

$message .= "Your Personal Information:\n";
$message .= "Date of Sign Up: $signdate\n\n";

$message .= "First Name: $first_name\n";
$message .= "Last Name: $last_name\n";
$message .= "Position: $position\n";
$message .= "Company: $company\n";
$message .= "Company Address: $c_address\n";
$message .= "Private Address: $p_address\n";
$message .= "Email: $email\n";
$message .= "Office Telephone: no.: $o_phone\n";
$message .= "Mobile telephone no.: $m_phone\n";
$message .= "Home telephone no.: $h_phone\n\n\n";


$message .= "You are always welcome to sign up for our up coming Acuity Evenings.\n\n";

$message .= "Best regards,\n\n\n";


$message .= "Acuity World\n";
$message .= "Making Leadership Personal with PLP in Denmark & HK\n";
$message .= "www.acuityworld.com\n";
$message .= "Tel: +45 4448 6969\n";
mail($email, $subject, $message, $headers);
		*/
$content1 = "<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN'>
<html>
<head>
<title>Acuity World</title>
<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'>
</head>
<body bgcolor='#FFFFFF'>
<table width='600' border='0' cellspacing='0' cellpadding='1'>
  <tr>
    <td align='right'><table width='180' border='0' cellpadding='1' cellspacing='0'>
  <tr>
    <td bgcolor='#000000'><table width='100%' border='0' cellpadding='1' cellspacing='0' bgcolor='#FFFFFF'>
        <tr>
                <td align='center'><font size='3' face='Verdana, Arial, Helvetica, sans-serif'><strong>Acuity World</strong></font></td>
        </tr>
      </table></td>
  </tr>
</table></td>
  </tr>
</table>
<p><font size='2' face='Arial, Helvetica, sans-serif'>Dear $first_name,</font></p>
<p><font size='2' face='Arial, Helvetica, sans-serif'>Thank you for the sign up of our Acuity Evening!<br>
  <br>
  Since the following Acuity Evening is fully booked, you are now on our waiting list.  You will be informed in case there is free seat.<br>
  <br>
  Date: $adate<br>
  Time: 
  $atime
  <br>
  Acuity Evening: 
  $presented
  <br>
  Venue: 
  $venue
  <br>
  Description: 
  $name
  <br>
  <br>
  Your Personal Information:<br>
Date of Sign Up: 
    $signdate
<br>
First Name: 
  $first_name <br>
  Last Name: 
  $last_name
  <br>
  Position: 
  $position
  <br>
  Company: 
  $company
  <br>
  Company Address: 
  $c_address
  <br>
Private Address:
$p_address
<br>
  Email: 
  $email
  <br>
  Office Telephone: no.: 
  $o_phone
  <br>
  Mobile telephone no.: 
  $m_phone
  <br>
  Home telephone no.: 
  $h_phone
  <br>
  <br>
  You are always welcome to sign up for our up coming Acuity Evenings.<br>
  <br>
  <br>
  Best regards,<br>
</font></p>
<p><font size='2' face='Arial, Helvetica, sans-serif'>Acuity World<br>
  Making Leadership Personal with PLP in Denmark &amp; HK www.acuityworld.com<br>
  Tel: +45 4448 6969</font></p>
<p>&nbsp; </p>
</body>
</html>
";

		sendhtmlmail($from_name,$from_email,$to_name,$to_email,$subject,$content1);
	}
	
	$q = "select email,name from user_profile where alert07='y'";
	$adminemail = myQuery($q);
	
	$Query = "select date, time, presented, venue, name from med_aevening where id='$id'";
$r = myQuery($Query);
$adate = strip_tags($r[0][0]);
$atime = strip_tags($r[0][1]);
$presented = strip_tags($r[0][2]);
$venue = strip_tags($r[0][3]);
$name = strip_tags($r[0][4]);
$from_name = "Acuity World";
$from_email = "info@acuityworld.com";
$to_name = "Acuity Users";

		for ($j=0; $j < count($adminemail); $j++) {
		$to_email = $adminemail[$j][0];
		$to_name = $adminemail[$j][1];
		/*
		$headers = "From: Acuity World <info@acuityworld.com>\r\n";
$headers .= "X-Sender: <info@acuityworld.com>\r\n";

$headers .= "Return-Path: <info@acuityworld.com>\r\n";
$subject = "New Sign Up of Acuity Evening\r";

$message = "";
$message .= "Date: $adate\n";
$message .= "Time: $atime\n";
$message .= "Acuity Evening: $presented\n";
$message .= "Venue: $venue\n";
$message .= "Description: ". strip_tags($name)."\n\n";

$message .= "Personal Information:\n";
$message .= "Date of Sign Up: $signdate\n\n";

$message .= "First Name: $first_name\n";
$message .= "Last Name: $last_name\n";
$message .= "Position: $position\n";
$message .= "Company: $company\n";
$message .= "Company Address: $c_address\n";
$message .= "Private Address: $p_address\n";
$message .= "Email: $email\n";
$message .= "Office Telephone: no.: $o_phone\n";
$message .= "Mobile telephone no.: $m_phone\n";
$message .= "Home telephone no.: $h_phone\n\n\n";
mail($adminemail[$j][0], $subject, $message, $headers);
*/

$subject = "Acuity Evening Sign Up Notification to Administrator - en";
/*

$file = "email/aenroll_admin.php?";

$target = 
"first_name=" . urlencode($first_name) . 
"&adate=" . $adate . 
"&atime=" . $atime . 
"&presented=" . urlencode($presented) . 
"&venue=" . urlencode($venue) . 
"&name=" . urlencode($name) . 
"&signdate=" . urlencode($signdate) . 
"&last_name=" . $last_name . 
"&position=" . $position . 
"&company=" . urlencode($company) . 
"&c_address=" . urlencode($c_address) . 
"&p_address=" . urlencode($p_address) . 
"&email=" . urlencode($email). 
"&o_phone=" . $o_phone . 
"&m_phone=" . urlencode($m_phone) . 
"&h_phone=" . urlencode($h_phone);

$content =  file($file . $target);

/*
$content1 = $remark . "<br><br>";


for ($i=0;$i<count($content);$i++){
	$content1 .= $content[$i];
}
*/
$content1 = "<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN'>
<html>
<head>
<title>Acuity World</title>
<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'>
</head>
<body bgcolor='#FFFFFF'>
<table width='600' border='0' cellspacing='0' cellpadding='1'>
  <tr>
    <td align='right'><table width='180' border='0' cellpadding='1' cellspacing='0'>
  <tr>
    <td bgcolor='#000000'><table width='100%' border='0' cellpadding='1' cellspacing='0' bgcolor='#FFFFFF'>
        <tr>
                <td align='center'><font size='3' face='Verdana, Arial, Helvetica, sans-serif'><strong>Acuity World</strong></font></td>
        </tr>
      </table></td>
  </tr>
</table></td>
  </tr>
</table>
<p><font size='2' face='Arial, Helvetica, sans-serif'>Date: 
  $adate
  <br>
  Time: 
  $atime
  <br>
  Acuity Evening: 
  $presented
  <br>
  Venue: 
  $venue
  <br>
  Description: 
  $name
</font></p>
<p><font size='2' face='Arial, Helvetica, sans-serif'>Personal Information:<br>
  Date of Sign Up: 
    $signdate
</font></p>
<p><font size='2' face='Arial, Helvetica, sans-serif'>First Name: 
  $first_name
  <br>
  Last Name: 
  $last_name
  <br>
  Position: 
  $position
  <br>
  Company: 
  $company
  <br>
  Company Address: 
  $c_address
  <br>
Private Address:
$p_address
<br>
  Email: 
  $email
  <br>
  Office Telephone: no.: 
  $o_phone
  <br>
  Mobile telephone no.: 
  $m_phone
  <br>
  Home telephone no.: 
  $h_phone
  <br>
  <br>
</font></p>
<p><font size='2' face='Arial, Helvetica, sans-serif'>Acuity World<br>
  Making Leadership Personal with PLP in Denmark &amp; HK www.acuityworld.com<br>
  Tel: +45 4448 6969</font></p>
<p>&nbsp; </p>
</body>
</html>
";

//for ($i=0;$i<count($content);$i++){print $content[$i];}
sendhtmlmail($from_name,$from_email,$to_name,$to_email,$subject,$content1);


	}
	
	
	$q = "update med_aevening set enrollments=enrollments+1 where id='$id'";
$r = myQuery($q);
	
   $field = array(
	"code",
"first_name",
"last_name",
"position",
"company",
"c_address",
"p_address",
"email",
"o_phone",
"m_phone",
"h_phone",
"aid",
"date",
"status",
	);


   $content = array(
	$code,
$first_name,
$last_name,
$position,
$company,
$c_address,
$p_address,
$email,
$o_phone,
$m_phone,
$h_phone,
$id,
$signdate,
$status,
	);

   myInsert("med_aenroll",$field,$content);




if ($newsletter == "checked") {
$table = "med_subscription";
   $field = array(
	"email", 
	"name", 
	"date", 
	"last_name",
	"tel",
	"fax",
	"address",
	"profession",
	"education",
	"country","company",
	);


$Name = $first_name . " " .$last_name;
   $content = array(
	$email,
	$Name,
	date("Y-m-d"),
	$last_name,
	$m_phone,$o_phone,
	$c_address . " " .$City . " " .$State . " " .$Zip,
	$position,"",
	$Country,$company,
	);

   myInsert($table,$field,$content);
	

}
header ("location: aevening_enroll_success.php?status='$status'");
exit;
	
}



}





$langname = 'aevening_signup';


$table = "med_aevening";

$field = array(
"id",
"presented",
"date",
"time",
"venue",
"name",
"contact",
"country",
"order_index",

);

if (!isset($id)) header("location: aevening.php");
if ($id) $exp = "AND id=$id Limit 1";
$r = unlimitQuery($table,$field,$exp);

$id=$r[0][0];
$et=$r[0][1];
$date=$r[0][2];
$time=$r[0][3];
$venue=$r[0][4];
$program=$r[0][5];
$trainer=$r[0][6];
$language=$r[0][7];
require("header.php");

?>
<style type="text/css">
<!--
.style1 {color: #FF0000}
-->
</style>













<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr> 

    <td width="186" valign="top"> 
      <?require("nav.php")?>
    </td>
    <td width="11"><img src="images/shim.gif" width="11" height="1"></td>
    <td valign="top"> 
      <?require("menu.php")?>
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td align="right"><table width="100%" border="0">
              <tr> 
                <td height="50" class="header">&gt;&gt; Sign Up Acuity Evening </td>
              </tr>
            </table></td>
        </tr>
      </table>



<!--

<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="daisyy@netvigator.com">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="USD">
<input type="image" src="https://www.paypal.com/images/x-click-but23.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
</form>
-->



<script language="JavaScript"> 
<!-- 
function checkForm1(theform) { 
if (theform.first_name.value=="") { 
    theform.first_name.focus(); 
    alert("Please enter your First Name."); 
    return false; } 

if (theform.last_name.value=="") { 
    theform.last_name.focus(); 
    alert("Please enter your last_name."); 
    return false; } 
	
if (theform.position.value=="") { 
    theform.position.focus(); 
    alert("Please enter your position."); 
    return false; } 
	
if (theform.company.value=="") { 
    theform.company.focus(); 
    alert("Please enter your company."); 
    return false; } 
	
if (theform.c_address.value=="") { 
    theform.c_address.focus(); 
    alert("Please enter your company address."); 
    return false; } 

if (validate_email(theform.email.value)== false){ 
    theform.email.focus(); 
    alert("Invalid E-mail."); 
    return false; }
	
if (theform.o_phone.value=="") { 
    theform.o_phone.focus(); 
    alert("Please enter your office phone."); 
    return false; } 
	
if (theform.m_phone.value=="") { 
    theform.m_phone.focus(); 
    alert("Please enter your mobile phone."); 
    return false; } 
	
if (theform.enroll_code.value==""){ 
    theform.enroll_code.focus(); 
    alert("Please enter the verify code."); 
    return false; } 

}
//--> 
</script>
      <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr> 
          <td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr> 
                <td width="13"><img src="images/c1.gif" width="13" height="37"></td>
                <td background="images/c5.gif"> <font color="#FFFFFF"> 
                  <?=$et?>
                  </font></td>
                <td width="13"><img src="images/c2.gif" width="13" height="37"></td>
              </tr>
            </table></td>
        </tr>
        <tr> 
          <td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td width="2" bgcolor="B1CAE8"><img src="images/shim.gif" width="2" height="1"></td>
                <td align="center"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr> 
                      <td bgcolor="F78D83"><img src="images/shim.gif" width="1" height="2"></td>
                    </tr>
                  </table>
                  <br>
                  <table width="96%" border="0" align="center" cellspacing="0" cellpadding="0">

              <tr>
                <td height="24"> <b><i>Evening Topic </i></b></td>
                <td>
                  <?=$et?>
                </td>
              </tr>
              <tr> 
                <td height="24"> <b><i>Date</i></b></td>
                <td width="370" height="2"> 
                  <?=$date?>
                </td>
              </tr>

              <tr> 
                <td colspan="2" background="images/line.gif"><img src="images/shim.gif" width="1" height="1"></td>
              </tr>

        
              <tr> 
                <td height="24"> <b><i>Time</i></b></td>
                <td> 
                  <?=$time?>
                </td>
              </tr>

              <tr> 
                <td colspan="2" background="images/line.gif"><img src="images/shim.gif" width="1" height="1"></td>
              </tr>


              <tr> 
                <td width=106 height="24"> <b><i>Venue</i></b></td>
                <td> 
                  <?=$venue?>
                </td>
              </tr>

              <tr> 
                <td colspan="2" background="images/line.gif"><img src="images/shim.gif" width="1" height="1"></td>
              </tr>
              <tr> 
                <td height="24"> <b><i>Language</i></b></td>
                <td> 
                  <?=$language?>
                </td>
              </tr>
              <tr> 
                <td colspan="2" background="images/line.gif"><img src="images/shim.gif" width="1" height="1"></td>
              </tr>



              <tr> 
                <td colspan="2" background="images/line.gif"><img src="images/shim.gif" width="1" height="1"></td>
              </tr>




              <tr> 
                <td colspan="2" background="images/line.gif"><img src="images/shim.gif" width="1" height="1"></td>
              </tr>


            </table>
                  <table width="96%" border="0" align="center" cellpadding="0" cellspacing="1">
                    <tr>
                      <td colspan="2" align="right">&nbsp;</td>
                    </tr>
                    <tr> 
                      <td width="99%" colspan="2" align="right"><a href="aevening.php">                        back</a> <a href="javascript:Redirect('aevening_detail.php?id=<?=$id?>',3)">details</a></td>
                    </tr>
                    <tr> 
                      <td colspan="2"><b>&nbsp;</b></td>
                    </tr>
                  </table>
                </td>
                <td width="2" bgcolor="B1CAE8"><img src="images/shim.gif" width="2" height="1"></td>
              </tr>
            </table></td>
        </tr>
        <tr> 
          <td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr> 
                <td width="6"><img src="images/c3.gif" width="6" height="6"></td>
                <td background="images/c7.gif"><img src="images/c7.gif" width="6" height="6"></td>
                <td width="6"><img src="images/c4.gif" width="6" height="6"></td>
              </tr>
            </table></td>
        </tr>
      </table>
      <!--
<a href="https://www.paypal.com/xclick/business=daisyy%40acuityworld.com&item_name=sc313213&item_number=asdfasdf&amount=332.00&image_url=http%3A//www.acuityworld.com/en/images/logo1.gif&return=http%3A//www.acuityworld.com/en/paypal_success.php&cancel_return=http%3A//www.acuityworld.com/en/paypal_cancel.php&no_note=1&currency_code=USD">buy</a>
-->
      <form name="form1" method="post" action="aevening_enroll_tmp.php?id=<?=$id?>" onSubmit="return checkForm1(this)">
<input type="hidden" name="aid" value="<?=$id?>">
<input type="hidden" name="action" value="signup">
<font color="red">
<?=$errormsg?></font>


        <table width="100%" border="0" cellspacing="0" cellpadding="1" align="center">
          <tr> 
            <td height="22" colspan="2" bgcolor="A0BBD6"><b>Personal Information</b></td>
          </tr>

          <tr>
            <td width="25%" class="tdheader"><span class="style1">* </span>First Name :</td>
            <td width="75%">
              <input name="first_name" type="text" class="text" id="first_name" value="<?=$_POST["first_name"]?>" size="40">            </td>
          </tr>
          <tr>
            <td class="tdheader"><span class="style1">* </span>Last Name :</td>
            <td>
              <input name="last_name" type="text" class="text" id="last_name" value="<?=$_POST["last_name"]?>" size="40">            </td>
          </tr>
          <tr>
            <td class="tdheader"><span class="style1">* </span>Position :</td>
            <td>
              <input name="position" type="text" class="text" id="position" value="<?=$_POST["position"]?>" size="40">            </td>
          </tr>
          <tr>
            <td class="tdheader"><span class="style1">* </span>Company :</td>
            <td>
              <input name="company" type="text" class="text" id="company" value="<?=$_POST["company"]?>" size="40">            </td>
          </tr>
          <tr>
            <td class="tdheader"><span class="style1">* </span>Company Address :</td>
            <td>
              <textarea name="c_address" cols="40" rows="5" class="text" id="c_address"><?=$_POST["c_address"]?></textarea>            </td>
          </tr>
          <tr>
            <td class="tdheader">Private Address :</td>
            <td>
              <textarea name="p_address" cols="40" rows="5" class="text" id="p_address"><?=$_POST["p_address"]?></textarea>            </td>
          </tr>
          <tr>
            <td class="tdheader"><span class="style1">* </span>Email :</td>
            <td>
              <input name="email" type="text" class="text" id="email" value="<?=$_POST["email"]?>" size="40">            </td>
          </tr>
          <tr>
            <td class="tdheader"><span class="style1">* </span>Office Phone :</td>
            <td>
              <input name="o_phone" type="text" class="text" id="o_phone" value="<?=$_POST["o_phone"]?>" size="40">            </td>
          </tr>
          <tr>
            <td class="tdheader"><span class="style1">* </span>Mobile Phone :</td>
            <td>
              <input name="m_phone" type="text" class="text" id="m_phone" value="<?=$_POST["m_phone"]?>" size="40">            </td>
          </tr>
          <tr>
            <td class="tdheader">Home Phone :</td>
            <td>
              <input name="h_phone" type="text" class="text" id="h_phone" value="<?=$_POST["h_phone"]?>" size="40">            </td>
          </tr>
          <tr>
            <td class="tdheader"><span class="style1">* </span>Verify  Code</td>
            <td><input name="enroll_code" type="text" class="text" id="enroll_code" size="10" /> 
            <img src="authimg.php?type=2" border="0" /></td>
          </tr>
          <tr>
            <td class="tdheader">Subscribe to Newsletter? </td>
            <td>
              <input name="newsletter" type="checkbox" id="newsletter" value="checked" checked="checked" <?=$_POST["newsletter"]?>>
              Yes, I want to receive e-Newsletter from you.            </td>
          </tr>

<!--
          <tr> 
            <td height="22" bgcolor="A0BBD6"><b>Payment Method</b></td>
          </tr>

          <tr> 
            <td>We accept credit card payment only. Our online payment is supported by Pay Pal. <BR><BR><img src="images/paypal_logo.gif" border="0">

			<input type="hidden" name="Payment_method" value="Credit Card">

			
			</td>
          </tr>

          <tr> 
            <td height="22" bgcolor="#78BCFF"><b>Payment Method</b></td>
          </tr>
          <tr> 
            <td> <input type="radio" name="Payment_method" value="Mail Check" checked>
              Mail Check </td>
          </tr>
          <tr> 
            <td> <input type="radio" name="Payment_method" value="Credit Card">
              Credit Card</td>
          </tr>
          <tr> 
            <td> <input type="radio" name="Payment_method" value="Other">
              Others 
              <input type="text" name="Other" size="30" class="text"> </td>
          </tr>
-->
		  <!--
          <tr> 
            <td>Amount : 
              <?=$currency?>
              <?=number_format($fee,2)?>
            </td>
          </tr>
		  -->


<!--
          <tr> 
            <td bgcolor="#CCCCCC"><b>Credit Card Information</b></td>
          </tr>
          <tr> 
            <td>&nbsp;</td>
          </tr>
          <tr> 
            <td> <input type="text" name="Cardname" size="30" class="text">
              Name on card</td>
          </tr>
          <tr> 
            <td> <input type="text" name="Cardno" size="30" class="text">
              Card no.</td>
          </tr>
          <tr> 
            <td> 
              <?

$sourceData = array(
  "Visa",
  "American Express",
  "Master",
  );

FFPSelectBox("Cardtype",$Status,$sourceData,$sourceLabel);

?>
            </td>
          </tr>




          <tr> 
            <td>
              <?=FFPtime(Date("Y-m-d"))?>
              Expiration date</td>
          </tr>

-->


          <tr> 
            <td colspan="2">&nbsp;</td>
          </tr>
          <tr> 
            <td colspan="2"> <input type="Reset" name="Reset" value="Reset" class="button"> 
              <input type="submit" name="Submit3" value="Sign Up" class="button">            </td>
          </tr>
          <tr> 
            <td colspan="2">&nbsp;</td>
          </tr>
        </table>
      </form>
      <br>
      <br> </td>
    <td width="11"><img src="images/shim.gif" width="11" height="1"></td>
    <td width="173" valign="top">
	
	
<?require("list.php")?>	 
	  
	  
    </td>

  </tr>
</table>





<?require("footer.php")?>	